From ede7828af2f265d3a40abe8905611861c0f88867 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 13 Nov 2006 09:49:12 +0000 Subject: [PATCH] [VMX] A few small cleanups. Signed-off-by: Xin Li --- xen/arch/x86/hvm/vmx/vmx.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index 2eed6af1a3..3cbea986d1 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -1814,7 +1814,7 @@ static inline void vmx_do_msr_read(struct cpu_user_regs *regs) msr_content = vcpu_vlapic(v)->apic_base_msr; break; default: - if (long_mode_do_msr_read(regs)) + if ( long_mode_do_msr_read(regs) ) return; if ( rdmsr_hypervisor_regs(regs->ecx, &eax, &edx) ) @@ -2045,11 +2045,6 @@ asmlinkage void vmx_vmexit_handler(struct cpu_user_regs *regs) perfc_incra(vmexits, exit_reason); - if ( (exit_reason != EXIT_REASON_EXTERNAL_INTERRUPT) && - (exit_reason != EXIT_REASON_VMCALL) && - (exit_reason != EXIT_REASON_IO_INSTRUCTION) ) - HVM_DBG_LOG(DBG_LEVEL_0, "exit reason = %x", exit_reason); - if ( exit_reason != EXIT_REASON_EXTERNAL_INTERRUPT ) local_irq_enable(); @@ -2121,8 +2116,6 @@ asmlinkage void vmx_vmexit_handler(struct cpu_user_regs *regs) #else case TRAP_debug: { - void store_cpu_user_regs(struct cpu_user_regs *regs); - if ( test_bit(_DOMF_debugging, &v->domain->domain_flags) ) { store_cpu_user_regs(regs); -- 2.30.2